#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QFile>
#include <QFileInfo>
#include <QString>
#include <QTextStream>
#include <QDomDocument>
#include <QMultiHash>
#include <QPair>

#include "progressdialog.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_cancelBtn_clicked();

    void on_xmlChooseBtn_clicked();

    void on_idxChooseBtn_clicked();

    void on_genBtn_clicked();

    void genIdx(QString xmlfile, QString idxfile);
    QPair<QString, QString> processLine(QString line);

private:
    Ui::MainWindow *ui;
    ProgressDialog *pdlg;
};

#endif // MAINWINDOW_H
